<?php 
if(@$_GET['id_del_bn']){
	$sql_del="delete from qldl_banner 
			  where MA_BANNER = '".$_GET['id_del_bn']."'
			 ";

	$query_del = @mysql_query($sql_del,$conn);
	if(!$query_del) echo "<script>alert ('Lỗi khi xóa thông tin.')</script>";
	else echo "<script>alert ('Xóa thông tin thành công.')</script>";
if(@$_GET['id_photo_bn']){
		$tenfile=$_GET['id_photo_bn'];
	unlink("banner/upload/news/".$tenfile);
	}
	echo "<meta http-equiv='refresh' content='0;url=index.php?page=banner'>";
}

?>

